package com.zcily.demo.service.impl;

import com.zcily.demo.model.entity.Permission;
import com.zcily.demo.model.entity.Role;
import com.zcily.demo.model.entity.User;
import com.zcily.demo.mapper.UserMapper;
import com.zcily.demo.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author CGG
 * @since 2025-11-05
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public List<Permission> selectUserPermissions(String userId) {
        return baseMapper.selectUserPermissions(userId);
    }

    @Override
    public List<Role> selectUserRoles(String userId) {
        return baseMapper.selectUserRoles(userId);
    }
}
